package com.kingdee.eas.custom.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.jdbc.rowset.IRowSet;
import java.util.ArrayList;
import java.util.HashSet;



public abstract class AbstractDefineProjectFacadeControllerBean extends AbstractBizControllerBean implements DefineProjectFacadeController
{
    protected AbstractDefineProjectFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("00279CB3");
    }

    public IRowSet queryProjectTreeById(Context ctx, String id) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ad8a7f20-50fb-4f5c-9b7d-02cf880a6355"), new Object[]{ctx, id});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_queryProjectTreeById(ctx, id);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _queryProjectTreeById(Context ctx, String id) throws BOSException
    {    	
        return null;
    }

    public IRowSet queryProjectById(Context ctx, String id) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("8999c3c4-5caf-4cb9-ba76-a73989a97d2c"), new Object[]{ctx, id});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_queryProjectById(ctx, id);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _queryProjectById(Context ctx, String id) throws BOSException
    {    	
        return null;
    }

    public IRowSet queryCompany(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("57e6c2a6-11b7-4751-a590-c488eb3ab7ba"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_queryCompany(ctx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _queryCompany(Context ctx) throws BOSException
    {    	
        return null;
    }

    public IRowSet queryOrgRangeByUser(Context ctx, String userID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("d1e4546b-15d1-47b5-9342-74573a84114f"), new Object[]{ctx, userID});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_queryOrgRangeByUser(ctx, userID);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _queryOrgRangeByUser(Context ctx, String userID) throws BOSException
    {    	
        return null;
    }

    public boolean assignOrgUnit(Context ctx, String[] listId, ArrayList orgList) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("bc5379a0-5de1-465d-a0b5-376c95f27b09"), new Object[]{ctx, listId, orgList});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_assignOrgUnit(ctx, listId, orgList);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _assignOrgUnit(Context ctx, String[] listId, ArrayList orgList) throws BOSException
    {    	
        return false;
    }

    public IRowSet queryProjectOrgById(Context ctx, String proId) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("929d326d-161e-47e8-bb53-d77e6ae409c3"), new Object[]{ctx, proId});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_queryProjectOrgById(ctx, proId);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _queryProjectOrgById(Context ctx, String proId) throws BOSException
    {    	
        return null;
    }

    public boolean deleteProjectOrg(Context ctx, String[] listId, ArrayList orgList) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("b7bfcb8f-32c3-4eb2-aed4-d3bf355d56ad"), new Object[]{ctx, listId, orgList});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_deleteProjectOrg(ctx, listId, orgList);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _deleteProjectOrg(Context ctx, String[] listId, ArrayList orgList) throws BOSException
    {    	
        return false;
    }

    public HashSet queryProjectOrgByUser(Context ctx, String userId) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("958a6b88-53f2-4c9c-9651-2d606711416e"), new Object[]{ctx, userId});
            invokeServiceBefore(svcCtx);
            HashSet retValue = (HashSet)_queryProjectOrgByUser(ctx, userId);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected HashSet _queryProjectOrgByUser(Context ctx, String userId) throws BOSException
    {    	
        return null;
    }

}